import request from "@/utils/request.js"
// import requestu from "@/utils/requestu.js"
import {pwd} from "@/config/config"
import Cache from '@/utils/cache';
import { LOGIN_STATUS } from '@/config/store';
const token = Cache.get(LOGIN_STATUS)

/**
 * 查询今日课程
*/ 
export function getLoWatch(){
  return request.post('yx/lo_watch',{pwd:pwd,token:token},{noAuth:true});
}

/**
 * 获取群主昨日新增跟群员总数
*/ 
export function getLoadZuo(){
  return request.post('yx/load_zuo',{pwd:pwd,token:token},{noAuth:true});
}

/**
 * 群主查所有会员信息
*/ 
export function getLoadUserIndexx(param){
  return request.post('yx/load_user_indexx',{pwd:pwd,token:token,list_rows:param.list_rows,page:param.page},{noAuth:true});
}

/**
 * 根据id查询观看记录 根据id查询视频数据
*/ 
export function getVoidWathLog(param){
	let params={
		pwd:pwd,
		token:token,
		id:param.vid,
		is_gk:param.is_gk,
        list_rows: param.list_rows,
        page: param.page,
	}
  return request.post('yx/void_wathindex',params,{noAuth:true});
}

/**
 * 
*/ 
export function void_wathindex_tow(param){
	let params={
		pwd:pwd,
		token:token,
		...param
	}
  return request.post('yx/void_wathindex_tow',params,{noAuth:true});
}
// /**
//  * 
// */ 
// export function hdvideo_hb_suan(param){
// 	let params={
// 		pwd:pwd,
// 		...param
// 	}
//   return requestu.post('yx/hdvideo_hb_suan',params,{noAuth:true});
// }
// /**
//  * 
// */ 
// export function vo_pic_dz(param){
// 	let params={
// 		pwd:pwd,
// 		...param
// 	}
//   return requestu.post('yx/vo_pic_dz',params,{noAuth:true});
// }
/**
 * 
*/ 
export function hdvideo_one(param){
	let params={
		pwd:pwd,
		...param
	}
  return request.post('yx/hdvideo_one',params,{noAuth:false});
}
/**
 * 
*/ 
export function void_question(param){
	let params={
		pwd:pwd,
		...param
	}
  return request.post('yx/void_question',params,{noAuth:false});
}

